import service from '@/utils/request'

// @Tags ProgramJoinInfo
// @Summary 创建ProgramJoinInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramJoinInfo true "创建ProgramJoinInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /programJoinInfo/createProgramJoinInfo [post]
export const createProgramJoinInfo = (data) => {
  return service({
    url: '/programJoinInfo/createProgramJoinInfo',
    method: 'post',
    data
  })
}

// @Tags ProgramJoinInfo
// @Summary 删除ProgramJoinInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramJoinInfo true "删除ProgramJoinInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /programJoinInfo/deleteProgramJoinInfo [delete]
export const deleteProgramJoinInfo = (data) => {
  return service({
    url: '/programJoinInfo/deleteProgramJoinInfo',
    method: 'delete',
    data
  })
}

// @Tags ProgramJoinInfo
// @Summary 删除ProgramJoinInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ProgramJoinInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /programJoinInfo/deleteProgramJoinInfo [delete]
export const deleteProgramJoinInfoByIds = (data) => {
  return service({
    url: '/programJoinInfo/deleteProgramJoinInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags ProgramJoinInfo
// @Summary 更新ProgramJoinInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramJoinInfo true "更新ProgramJoinInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /programJoinInfo/updateProgramJoinInfo [put]
export const updateProgramJoinInfo = (data) => {
  return service({
    url: '/programJoinInfo/updateProgramJoinInfo',
    method: 'put',
    data
  })
}

// @Tags ProgramJoinInfo
// @Summary 用id查询ProgramJoinInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProgramJoinInfo true "用id查询ProgramJoinInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /programJoinInfo/findProgramJoinInfo [get]
export const findProgramJoinInfo = (params) => {
  return service({
    url: '/programJoinInfo/findProgramJoinInfo',
    method: 'get',
    params
  })
}

// @Tags ProgramJoinInfo
// @Summary 分页获取ProgramJoinInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ProgramJoinInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /programJoinInfo/getProgramJoinInfoList [get]
export const getProgramJoinInfoList = (params) => {
  return service({
    url: '/programJoinInfo/getProgramJoinInfoList',
    method: 'get',
    params
  })
}
